package com.demo.liteflow.controller;


import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
public class TestController {

    @Resource
    private FlowExecutor flowExecutor;

    @GetMapping("/test")
    public void test(){
        LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg");
    }

}
